package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BeanScopes1 {

    @Autowired
    private User user3;

    public User getUser1(){
        User user1 = user3;
        user1.setName("悟空");
        return user1;
    }

}
